<?php


namespace app\controller\api;
use app\FrontendController;
use app\model\frontend\BrandModel;
use app\model\tool\ImageModel;

class brand extends FrontendController{

    public function index(){

        $list = [];
        $list = BrandModel::get_list();
        foreach( $list as &$v ){
            $v['img'] = ImageModel::resize2( $v['img'], 200, 200 );
        }
        echo json_encode( $list );

    }




}